home *** CD-ROM | disk | FTP | other *** search
- Path: bcfreenet.seflin.lib.fl.us!bcfreenet!z007400b
- From: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman)
- Newsgroups: comp.lang.c
- Subject: Re: text file manipulation
- Date: 30 Jan 1996 19:47:21 GMT
- Organization: SEFLIN Free-Net - Broward
- Message-ID: <4elsk9$a30@bcfreenet.seflin.lib.fl.us>
- References: <4e6su7$6pu@paperboy.ids.net>
- NNTP-Posting-Host: bcfreenet.seflin.lib.fl.us
- X-Newsreader: TIN [version 1.2 PL2]
-
- scarney (scarney@conan.ids.net) wrote:
-
- : Another stupid question...
-
- : I'm trying to write a little program to modify the /etc/passwd
- : file...I'm curious how you take a line in a text file (like passwd) and
- : change it. Does fwrite append, or if the file index is in the middle of
- : the file will it overwrite whatever is there (i.e., do what I want to do
- : with the file). If not, could you use the FILE pointer to change the data?
-
- : Thanks.
-
- : --Seth
-
-
- --
- ***********begin r.s. response*********
-
- interestingly,
- this posting raises fascinating questions
- about
- unix system security
- .
- the file mentioned above,
- in unix systems,
- includes information fields
- in encrypted form,
- upon which
- permissions
- ,
- and hence,
- system security,
- depend
- .
-
- in the past,
- those attempting to break
- unix security
- have found useful,
- and even necessary,
- the systematic modification
- of such information in
- such schemes.
-
- the notorious
- ARPANET
- CRASH
- of some years ago, now,
- is thought to have depended
- on a such mechanism...
-
- ***********end r.s. response***********
- Ralph Silverman
- z007400b@bcfreenet.seflin.lib.fl.us
-
-